<script>
    //传统方式定义的方法
    const person1 = {
        saiHi: function () {
            console.log("Hi");
        }
    }

    person1.saiHi();

    //ES6
    const person2 = {
        saiHi2() {
            console.log("Hi2")
        }
    }
    person2.saiHi2();
</script>